public class es2 {
	public static int m[][] = new int[5][5];

	public static void main(String[] args) {
		int max[] = new int[m.length];
		int min[] = new int[m[0].length];

		for (int i = 0; i < m.length; i++) {
			for (int j = 0; j < m[0].length; j++) {
				m[i][j] = (int) (Math.random() * 100);
				System.out.println(m[i][j]);

			}
		}

		for (int j = 0; j < m[0].length; j++) {
			Minc m = new Minc(j);
			m.start();
			System.out.println(m.getMin());
			min[j] = m.getMin();
		}

		for (int i = 0; i < m[0].length; i++) {
			Maxr m = new Maxr(i);
			m.start();
			System.out.println(m.getMin());
			max[i] = m.getMin();
		}
		for (int i = 0; i < min.length; i++) {
			for (int j = 0; j < max.length; j++) {

				if (min[i] == max[j]) {
					System.out.print("min&max:_" + i + " " + j);

				}

			}
		}

	}

}
